<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="vue" >
        <div>名称:{{info.name}}</div>
        <div>地址:{{info.address.country}}-{{info.address.city}}</div>

    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.5.21/dist/vue.js"></script>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script type="text/javascript">
    var vm = new Vue({
        el:'#vue',
        data(){
            return {
                info: {
                    name: null,
                    address: {
                        country: null,
                        city: null,
                    },
                    url: null
                }
            }
            },
                mounted(){ //钩子函数
                axios
                    .get('../data.json')
                    .then(response => (this.info = response.data));

                }

    });
</script>
</body>
</html>